package com.sfx.controller;

import com.sfx.domain.ResponseResult;
import com.sfx.service.TagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2023-07-14
 * Time: 17:47
 */
@RestController
@RequestMapping("/tag")
public class TagController {
    @Autowired
    private TagService tagService;

    @GetMapping("/tagList")
    public ResponseResult tagList() {
        return ResponseResult.okResult(tagService.list());
    }
}